package my.test.observer;

/**
 * @Author 许玉康
 * @Date 2019/9/25 15:21
 */
public class Client3 {

    public static void main(String[] args) {
        //三个观察者都产生出来
        Observer liSi_3 = new LiSi_3();
        Observer wangSi = new WangSi();
        Observer liuSi = new LiuSi();

        //定义出韩非子
        HanFeizi_3 hanFeizi_3 = new HanFeizi_3();
        hanFeizi_3.addObserver(liSi_3);
        hanFeizi_3.addObserver(wangSi);
        hanFeizi_3.addObserver(liuSi);
        hanFeizi_3.haveBreakfast();
    }
}
